package com.example.jaxws.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class ShopInfo {

    @WebMethod
    public @WebResult(partName = "property_result") String getShopInfo(@WebParam(partName = "property") String property) {
        String response = "Invalid property";
        if ("shop name".equals(property)) {
            response = "Test Mart";
        } else if ("since".equals(property)) {
            response = "04.11.2014";
        }
        return response;
    }
}


